﻿using System.Net;

namespace Builderator.Core.Database
{
    public class DatabaseInfo
    {
        public string Server
        {
            get;
            set;
        }

        public string Instance
        {
            get;
            set;
        }

        public string Database
        {
            get;
            set;
        }

        public string User
        {
            get;
            set;
        }

        public string Password
        {
            get;
            set;
        }

        public DatabaseInfo()
        {
            this.Server = Dns.GetHostName();

            this.Instance = "builderator";

            this.Database = "builderator";

            this.User = "sa";

            this.Password = "build!1234";
        }

        public override string ToString()
        {
            return string.Format("Server={0}\\{1};Database={2};User ID={3};Password={4}", this.Server, this.Instance, this.Database, this.User, this.Password);
        }
    }
}